package com.example.mybatisplusdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatisplusdemo.model.domain.PointsMall;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 积分商城功能 Mapper 接口
 * </p>
 *
 * @author lqj
 * @since 2025-06-26
 */
public interface PointsMallMapper extends BaseMapper<PointsMall> {

    PointsMall selectByProductId(@Param("id") Long id);

    void insertPointsMall(@Param("product") PointsMall pointsMall);

    void updatePointsMall(@Param("product1") PointsMall pointsMall);

    Integer selectPointsPriceByProductId(@Param("productId") Long productId);
}
